//
//  UIViewController+Extension.m
//  iOS Object
//
//  Created by 保密 on 2019/7/5.
//  Copyright © 2019年 XiaoHaiBao. All rights reserved.
//

#import "UIViewController+Extension.h"

@implementation UIViewController (Extension)

// 设置状态栏背景色
- (void)setStatusBarBackgroundColor:(UIColor *)statusBarBackgroundColor {
    UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"];
    if ([statusBar respondsToSelector:@selector(setBackgroundColor:)]) {
        statusBar.backgroundColor = statusBarBackgroundColor;
    }
}


@end
